<?php slot('article','active'); ?>
<div class="W100p mainptn">
	<div class="Cw1280">
        <!--成长烦恼-->
        <div class="Czfn_div" style="width:860px;">
            <div class="Htbanner"><a href=""><img src="images/img14.jpg" width="860" height="210"></a></div>
	<?php include_component('article', 'recommend'); ?>
            
            <div class="Deprodiv">
            	<div class="DecGtitle"><span>最新文章</span></div>
                <div class="deproli">
                    <?php $tag = ((strlen(trim($sf_request->getParameter('tag',''))) == 0) ? '最新' : $sf_request->getParameter('tag','')); ?>
                    <li class="<?php if( $tag == '最新'): ?> now <?php endif; ?>"><a href="<?php echo url_for('article/index?tag=最新'); ?>">最新</a></li>
                    <li class="<?php if($tag == '儿童心理'): ?> now <?php endif; ?>"><a href="<?php echo url_for('article/index?tag=儿童心理'); ?>">儿童心理</a></li>
                    <li class="<?php if($tag == '家庭教育'): ?> now <?php endif; ?>" ><a href="<?php echo url_for('article/index?tag=家庭教育'); ?>">家庭教育</a></li>
                    <li class="<?php if($tag == '学习能力'): ?> now <?php endif; ?>"><a href="<?php echo url_for('article/index?tag=学习能力'); ?>">学习能力</a></li>
                    <li class="<?php if($tag == '亲子游戏'): ?> now <?php endif; ?>"><a href="<?php echo url_for('article/index?tag=亲子游戏'); ?>">亲子游戏</a></li>
                    <li class="<?php if($tag == '周边玩乐'): ?> now <?php endif; ?>"><a href="<?php echo url_for('article/index?tag=周边玩乐'); ?>">周边玩乐</a></li>
                    <li class="<?php if($tag == '书籍电影'): ?> now <?php endif; ?>"><a href="<?php echo url_for('article/index?tag=书籍电影'); ?>">书籍电影</a></li>
                </div>
            </div>
            <?php foreach($pager->getResults() as $article): ?>
            <div class="jrgdlist">
            	<div class="jrgdimg"><!--图片--><img src="<?php echo $article->getThumbCover('articlecover1') ?>" width="240" height="135" /></div>
                <div class="jrgdcont">
                	<div class="jrgdtitleb"><a href="<?php echo url_for('article/show?id='.$article->getId()); ?>"><?php echo $article->getTitle(); ?></a></div>
                    <div class="jrgdlistc"><?php echo $article->getSummary() ?></div>
                    <div class="jrgdtx">
                    	<div class="jrgdtxbq">
                            <?php foreach($article->getTagToArray() as $tag): ?>
                            <li><?php echo $tag ?></li>
                            <?php endforeach; ?>
                        </div>
                        <div class="jrgdtxri">
                            <h1><!--头像--><img src="<?php echo $article->getAuthorObj()->getThumbCover('articleauthoorcover') ?>" width="24" height="24" /></h1>
                            <h2><?php echo $article->getAuthorObj()->getName() ?></h2>
                            <h3><?php echo $article->getTimeAgoToString() ?></h3>
                        </div>
                    </div>
                </div>
            </div>
            <?php endforeach; ?>
            <?php echo pager_navigation_theme($pager, 'article/index?tag='.$sf_request->getParameter('tag','最新'),4); ?>
            <!--<div class="zxhtpage"><a href=""><</a><a href="">1</a><a href="">2</a><a href="" class="n">3</a><a href="">4</a><a href="">...</a><a href="">></a></div>-->
        </div>
        
        <!--右边-->
        <div class="DeRight" style="width:360px;">
        	<?php include_component('article', 'hot_articles'); ?>
        	
            <?php include_component('article', 'author_list'); ?>
            
            <?php include_component('article', 'recommend_comment'); ?>
            
            
        </div>
        
    </div>
</div>